

        <div class="owner_nav">

<h2 class="module_title"><?php echo __("Manage your Listing");?></h2>
    <?php
            if($session->read("Auth.User.id") && $listingData['Listing']['owner_id'] == $session->read("Auth.User.id") && AppUtility::allowPaidListing())
            {
                ?><div><i class="fa  fa-shopping-cart"></i><?php
                echo $html->link(__("Manage Plans"),'/paid_listings/listing_plans/index/'.$listingData['Listing']['id'],array("class"=>""));
                echo "</div>";
            }
        ?>
<?php $isOwner = cr("ListingConfig.business_owner");
?>
<?php   if((cr("ListingConfig.allowOwnerEdit") && $session->read("Auth.User") && $session->read("Auth.User.id") == $listingData['Listing']['user_id']) || $isOwner)
        {?> <div><i class="fa fa-pencil"></i><?php
            echo $html->link(__("Edit Listing"),array("action"=>"edit",$listingData['Listing']['slug']),array('class'=>''));
            echo "</div>";

        }
        ?>
        <?php 
        if($showDealAddButton == true && $isOwner == true)
        {
            echo " <div><i class='fa fa-tags'></i> ".$html->link(__("Add Deal"),array("plugin"=>"deals","controller"=>"deals","action"=>"add",$listingData['Listing']['id']),array('class'=>'offer_add_link deal_add_link'));
                        echo "</div>";

        }
        $isEventsEnabled = cr("EventConfig.enable_events");
        if($isEventsEnabled && $session->read("Auth.User"))
        {
            echo " <div><i class='fa  fa-calendar'></i> ".$html->link(__("Add Event"),array("plugin"=>"events","controller"=>"events","action"=>"add",$listingData['Listing']['id']),array('class'=>'event_add_link'));
                        echo "</div>";

        }
        ?>
    </div>